<template>
    <div class="aplayers">
    </div>
</template>
<script>
export default {
    data() {
        return {
            url:'',
        }
    },
    async created() {
      let aplayer_list= await this.$axios("https://netease.bluej.cn/song/url?id="+this.$route.query.id);
      let aplayer_url=aplayer_list.data.data[0].url;
      this.url=aplayer_url;
    },
    computed: {
        hot_aplayer(){
            if (this.$route.query.type !=1) {
                return this.$store.state.hot_data.filter(item => item.id == this.$route.query.id)[0]
            }else if(this.$route.query.type ==1){
                console.log("6666")
                return this.$route.query.newurl
            }
        }
    },
    methods: {
        add(){
            console.log(this.hot_aplayer);
        }
    },
    components:{
    }
}
</script>
<style lang="scss">
    
</style>